package com.lyw.forum.pojo.request;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ModifyPasswordRequest {
    @Min(value = 1, message = "用户id不能小于1")
    private Integer id;
    @NotNull(message = "旧密码不能为空")
    private String oldPassword;
    @NotNull(message = "新密码不能为空")
    private String newPassword;
    @NotNull(message = "重复新密码不能为空")
    private String passwordRepeat;
}
